<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
    	$request = $this->getRequest();
    	$product_buy_mapper = new Application_Model_ProductBuyMapper();
       	
       	$this->view->prodBuyEntries = $product_buy_mapper->findAll();
       	
       	$this->view->assign('action', $request->getBaseURL()."/product/addprod");
       	$this->view->assign('bidAction', $request->getBaseURL()."/product/sellerbid/lt/sb");
       	$this->view->assign('oneBid' , '一口價');
       	$this->view->assign('closedBid' , '暗標');
       	$this->view->assign('username' , '用戶名:');
       	$this->view->assign('new' , '%新');
        $this->view->assign('title' , '標題');
        $this->view->assign('status' , '新淨度(E.g.: 100%)');
        $this->view->assign('description' , '產品描述');
        $this->view->assign('price' , '最高價格');
        $this->view->assign('mode' , '投標模式');
        $this->view->assign('oneBid' , '一口價');
        $this->view->assign('closedBid' , '暗標');
        $this->view->assign('image' , '圖片');
        $this->view->assign('validTime' , '有效時間');
        $this->view->assign('tradeMethod' , '交易方式');
        $this->view->assign('payFirst','先付款後發貨');
        $this->view->assign('payLater','收貨後付款');
        $this->view->assign('payDeposit','先付訂金, 收貨再付尾數');
        $this->view->assign('validDate','刊登日數');
        $this->view->assign('day','日');
        $this->view->assign('payment','收款方式 ');
        $this->view->assign('paypal','Paypal');
        $this->view->assign('bankTransfer','銀行轉帳 ');
        $this->view->assign('cheque','匯票╱銀行支票 ');
        $this->view->assign('others','其他(見描述) ');
        $this->view->assign('delivery' , '交收方式');
        $this->view->assign('face' , '見面交收');
        $this->view->assign('mail' , '電郵');
        $this->view->assign('submit' , '提交');
    }


}

